home *** CD-ROM | disk | FTP | other *** search
- ELF_GETEHDR(3E) Last changed: 1-8-99
-
-
- NNAAMMEE
- eellff__ggeetteehhddrr, eellff3322__ggeetteehhddrr, eellff3322__nneewweehhddrr, eellff6644__ggeetteehhddrr,
- eellff6644__nneewweehhddrr - Retrieves class-dependent object file header
-
- SSYYNNOOPPSSIISS
- cccc [_f_l_a_g ...] _f_i_l_e ... --lleellff [_l_i_b_r_a_r_y ...]
-
- ##iinncclluuddee <<lliibbeellff..hh>>
-
- EEllff3322__EEhhddrr **eellff3322__ggeetteehhddrr((EEllff **eellff));;
-
- EEllff3322__EEhhddrr **eellff3322__nneewweehhddrr((EEllff **eellff));;
-
- EEllff6644__EEhhddrr **eellff6644__ggeetteehhddrr((EEllff **eellff));;
-
- EEllff6644__EEhhddrr **eellff6644__nneewweehhddrr((EEllff **eellff));;
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- For a 32-bit class file, eellff3322__ggeetteehhddrr returns a pointer to an ELF
- header, if one is available for the ELF descriptor, eellff. If no header
- exists for the descriptor, eellff3322__nneewweehhddrr allocates a _c_l_e_a_n one, but it
- otherwise behaves the same as eellff3322__ggeetteehhddrr. It does not allocate a
- new header if one already exists. If no header exists (for
- eellff__ggeetteehhddrr), one cannot be created (for eellff__nneewweehhddrr); if a system
- error occurs, the file is not a 32-bit class file, or eellff is null,
- both functions return a null pointer.
-
- For 64-bit class files, the 6644 version is applicable instead of the 3322
- version of the functions.
-
- The header includes the following members:
-
- uunnssiiggnneedd cchhaarr ee__iiddeenntt[[EEII__NNIIDDEENNTT]];;
-
- EEllff3322__HHaallff ee__ttyyppee;;
-
- EEllff3322__HHaallff ee__mmaacchhiinnee;;
-
- EEllff3322__WWoorrdd ee__vveerrssiioonn;;
-
- EEllff3322__AAddddrr ee__eennttrryy;;
-
- EEllff3322__OOffff ee__pphhooffff;;
-
- EEllff3322__OOffff ee__sshhooffff;;
-
- EEllff3322__WWoorrdd ee__ffllaaggss;;
-
- EEllff3322__HHaallff ee__eehhssiizzee;;
-
- EEllff3322__HHaallff ee__pphheennttssiizzee;;
-
- EEllff3322__HHaallff ee__pphhnnuumm;;
-
- EEllff3322__HHaallff ee__sshheennttssiizzee;;
-
- EEllff3322__HHaallff ee__sshhnnuumm;;
-
- EEllff3322__HHaallff ee__sshhssttrrnnddxx;;
-
- For 64-bit class files, the following is applicable:
-
- uunnssiiggnneedd cchhaarr ee__iiddeenntt[[EEII__NNIIDDEENNTT]];;
-
- EEllff6644__HHaallff ee__ttyyppee;;
-
- EEllff6644__HHaallff ee__mmaacchhiinnee;;
-
- EEllff6644__WWoorrdd ee__vveerrssiioonn;;
-
- EEllff6644__AAddddrr ee__eennttrryy;;
-
- EEllff6644__OOffff ee__pphhooffff;;
-
- EEllff6644__OOffff ee__sshhooffff;;
-
- EEllff6644__WWoorrdd ee__ffllaaggss;;
-
- EEllff6644__HHaallff ee__eehhssiizzee;;
-
- EEllff6644__HHaallff ee__pphheennttssiizzee;;
-
- EEllff6644__HHaallff ee__pphhnnuumm;;
-
- EEllff6644__HHaallff ee__sshheennttssiizzee;;
-
- EEllff6644__HHaallff ee__sshhnnuumm;;
-
- EEllff6644__HHaallff ee__sshhssttrrnnddxx;;
-
- eellff3322__nneewweehhddrr automatically sets the EELLFF__FF__DDIIRRTTYY bit [see
- eellff__ffllaagg(3E)]. A program may use eellff__ggeettiiddeenntt to inspect the
- identification bytes from a file.
-
- The 64-bit class works in the same way. In the previous description,
- replace all instances of 32 with 64.
-
- SSEEEE AALLSSOO
- eellff(3E), eellff__bbeeggiinn(3E), eellff__ffllaagg(3E), eellff__ggeettiiddeenntt(3E)
-
- This man page is available only online.
-